import requests

url_login = 'http://192.168.196.128/apitest/refer/login/'
url_info = 'http://192.168.196.128/apitest/refer/info/'
s = requests.session()  # 创建会话，在各个请求之间，自动传递sessionid、cookies等数据
args = {'username': 'admin', 'password': '123456'}
s.post(url_login, args)
res = s.get(url_info)
print(res.text)
